package com.pg_chat.mapper;

import java.util.List;
import com.pg_chat.model.FriendsEntity;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface FriendsMapper {

    //获取朋友数据by F_ID
    FriendsEntity queryFriendsByFID(int fID);
    //获取好友数据by 双方信息
    List<FriendsEntity>queryFriends(int userID, int firID);
    //获取朋友数据 by userId
    List<FriendsEntity> queryFriendsByUserId(int userID);
    //by friendGroup
    List<FriendsEntity> queryFriendsByGroup(int friGroup);
    //增加好友 by friendId
    int insertFriends(FriendsEntity friend);
    //list
    int insertFriendsList(List<FriendsEntity> list);
    //删除好友 by fId
    int deleteFriendsByFID(int fID);
    //
    int deleteFriends(int friID,int userID);
    //
    int updateFriends(FriendsEntity friend);
}
